﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Xml;

namespace JsonServer.Interfaces
{
    public delegate void AjaxMethod(Dictionary<string, string> args, Stream inputData, Stream outputStream);

    [Serializable]
    public class JsonServerApi : Dictionary<string, AjaxMethod>
    {
    } ;

    public interface IJsonServer
    {
        void RegisterApi(JsonServerApi api);

        void Configure(XmlNode cfg);

        //void Execute(string method, Dictionary<string, string> args, Stream inputStream, Stream outputStream);
        //void Execute(Dictionary<string, string> args, Stream inputStream, Stream outputStream);
    }
}
